"""
启动服务器脚本
"""
import uvicorn
import traceback

try:
    print("正在启动服务器...")
    uvicorn.run(
        "app.main:app",
        host="127.0.0.1",
        port=8000,
        log_level="debug"
    )
except Exception as e:
    print(f"启动失败: {e}")
    print("详细错误信息:")
    traceback.print_exc()
